Skip to content

Conversation

@jordan-powers
Copy link
Contributor

This brings in the fixes from #130020, with minor updates to address review nits from that PR.

jordan-powers and others added 3 commits June 25, 2025 12:52
Fix class cast issue in bwc for match_only_text fields.


Co-authored-by: Martijn van Groningen <[email protected]>
@jordan-powers jordan-powers requested a review from martijnvg June 25, 2025 21:40
@jordan-powers jordan-powers self-assigned this Jun 25, 2025
@jordan-powers jordan-powers added >non-issue auto-backport Automatically create backport pull requests when merged :StorageEngine/Mapping The storage related side of mappings v8.19.0 v9.1.0 v9.2.0 labels Jun 25, 2025
Copy link
Member

@martijnvg martijnvg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Co-authored-by: Martijn van Groningen <[email protected]>
@jordan-powers jordan-powers marked this pull request as ready for review June 26, 2025 16:19
@jordan-powers jordan-powers requested a review from a team as a code owner June 26, 2025 16:19
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-storage-engine (Team:StorageEngine)

@jordan-powers jordan-powers enabled auto-merge (squash) June 26, 2025 16:26
@Override
public BlockLoader blockLoader(BlockLoaderContext blContext) {
if (textFieldType.isSyntheticSource()) {
return new BlockStoredFieldsReader.BytesFromBytesRefsBlockLoader(storedFieldNameForSyntheticSource());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before I forget. In a follow up, let's add index version for this? So that we can only use BytesFromMixedStringsBytesRefBlockLoader when we need to and otherwise use BlockStoredFieldsReader.BytesFromBytesRefsBlockLoader.

@jordan-powers jordan-powers merged commit 40a7d02 into elastic:main Jun 26, 2025
33 checks passed
jordan-powers added a commit to jordan-powers/elasticsearch that referenced this pull request Jun 26, 2025
This brings in the fixes from elastic#130020, with minor fixes to address review
nits from that PR.

Co-authored-by: Martijn van Groningen <[email protected]>
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

Status Branch Result
8.19 Commit could not be cherrypicked due to conflicts
9.1

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 130049

@jordan-powers
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
8.19

Questions ?

Please refer to the Backport tool documentation

elasticsearchmachine pushed a commit that referenced this pull request Jun 27, 2025
* Pull match_only_text fixes into main (#130049)

This brings in the fixes from #130020, with minor fixes to address review
nits from that PR.

Co-authored-by: Martijn van Groningen <[email protected]>
(cherry picked from commit 40a7d02)

# Conflicts:
#	qa/rolling-upgrade/src/javaRestTest/java/org/elasticsearch/upgrades/MatchOnlyTextRollingUpgradeIT.java

* Fix base class of MatchOnlyTextRollingUpgradeIT

* Add missing assumption to MatchOnlyTextRollingUpgradeIT
smalyshev pushed a commit to smalyshev/elasticsearch that referenced this pull request Jun 27, 2025
This brings in the fixes from elastic#130020, with minor fixes to address review
nits from that PR.

Co-authored-by: Martijn van Groningen <[email protected]>
elasticsearchmachine pushed a commit that referenced this pull request Jun 27, 2025
This brings in the fixes from #130020, with minor fixes to address review
nits from that PR.

Co-authored-by: Martijn van Groningen <[email protected]>
jordan-powers added a commit that referenced this pull request Jul 2, 2025
…130363)

Follow-up to #130049 to gate using the binary format for the stored field
in match_only_text fields behind an index version.
jordan-powers added a commit to jordan-powers/elasticsearch that referenced this pull request Jul 2, 2025
…lastic#130363)

Follow-up to elastic#130049 to gate using the binary format for the stored field
in match_only_text fields behind an index version.
elasticsearchmachine pushed a commit that referenced this pull request Jul 2, 2025
…ormat (#130363) (#130416)

* Add index version for match_only_text stored field in binary format (#130363)

Follow-up to #130049 to gate using the binary format for the stored field
in match_only_text fields behind an index version.

(cherry picked from commit a69c484)

# Conflicts:
#	server/src/main/java/org/elasticsearch/index/IndexVersions.java

* Fix IndexVersion in testLoadSyntheticSourceFromStringOrBytesRef

* Trigger build for auto-merge
mridula-s109 pushed a commit to mridula-s109/elasticsearch that referenced this pull request Jul 2, 2025
…lastic#130363)

Follow-up to elastic#130049 to gate using the binary format for the stored field
in match_only_text fields behind an index version.
elasticsearchmachine pushed a commit that referenced this pull request Jul 2, 2025
…rmat (#130363) (#130414)

* Add index version for match_only_text stored field in binary format (#130363)

Follow-up to #130049 to gate using the binary format for the stored field
in match_only_text fields behind an index version.

* Fix index version check
mridula-s109 pushed a commit to mridula-s109/elasticsearch that referenced this pull request Jul 3, 2025
This brings in the fixes from elastic#130020, with minor fixes to address review
nits from that PR.

Co-authored-by: Martijn van Groningen <[email protected]>
mridula-s109 pushed a commit to mridula-s109/elasticsearch that referenced this pull request Jul 3, 2025
…lastic#130363)

Follow-up to elastic#130049 to gate using the binary format for the stored field
in match_only_text fields behind an index version.
@jordan-powers jordan-powers deleted the fix-match-only-text branch July 28, 2025 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged >non-issue :StorageEngine/Mapping The storage related side of mappings Team:StorageEngine v8.19.0 v9.1.0 v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants